package de.godlike.services.internal.dataTypes;

/**
 * This class represents a Disk (mountpoint) in an OS.
 * 
 * @author asmodaeus
 * 
 */
public class DiskInfo {
	/**
	 * Adress of mountpoint
	 */
	private String mountPoint;
	/**
	 * Total available Space in KB
	 */
	private String totalSpace;
	/**
	 * Space in use in KB
	 */
	private String usedSpace;
	/**
	 * free Space in KB
	 */
	private String freeSpace;

	/**
	 * 
	 */
	public DiskInfo() {
		super();
	}

	/**
	 * @param mountPoint
	 * @param totalSpace
	 * @param usedSpace
	 * @param freeSpace
	 */
	public DiskInfo(String mountPoint, String totalSpace, String usedSpace,
			String freeSpace) {
		super();
		this.mountPoint = mountPoint;
		this.totalSpace = totalSpace;
		this.usedSpace = usedSpace;
		this.freeSpace = freeSpace;
	}

	/**
	 * @return the mountPoint
	 */
	public String getMountPoint() {
		return this.mountPoint;
	}

	/**
	 * @param mountPoint
	 *            the mountPoint to set
	 */
	public void setMountPoint(String mountPoint) {
		this.mountPoint = mountPoint;
	}

	/**
	 * @return the totalSpace in KB
	 */
	public String getTotalSpace() {
		return this.totalSpace;
	}

	/**
	 * @param totalSpace
	 *            the totalSpace to set in KB
	 */
	public void setTotalSpace(String totalSpace) {
		this.totalSpace = totalSpace;
	}

	/**
	 * @return the usedSpace in KB
	 */
	public String getUsedSpace() {
		return this.usedSpace;
	}

	/**
	 * @param usedSpace
	 *            the usedSpace to set in KB
	 */
	public void setUsedSpace(String usedSpace) {
		this.usedSpace = usedSpace;
	}

	/**
	 * @return the freeSpace in KB
	 */
	public String getFreeSpace() {
		return this.freeSpace;
	}

	/**
	 * @param freeSpace
	 *            the freeSpace to set in KB
	 */
	public void setFreeSpace(String freeSpace) {
		this.freeSpace = freeSpace;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return this.mountPoint + "; total:" + this.totalSpace + "KB; used:"
				+ this.usedSpace + "KB; free:" + this.freeSpace + "KB;";
	}
}
